﻿using System;
using System.Collections.Generic;
using System.Data.Entity.Migrations;
using System.Linq;
using System.Text;

namespace SelfMadeMillionaire.DAL.Migrations
{
	public class AddColumnPriceToOrder : DbMigration 
	{
		public override void Up()
		{
			AddColumn("dbo.Orders", "Price", c => c.Double());

			Sql("UPDATE dbo.Orders SET Price = 0 ");
		}

		public override void Down()
		{
			DropColumn("dbo.Orders", "Price");
		} 
	}
}
